package com.jbm.jbmsupplier.util.enums;

/**
 * Created by lyh on 2017/2/23.
 *  信息发布类别
 */
public enum InfoType {
    Goods (1), //热销
    Common(2), // 公共
    Service (3), //服务
    Help (4), //求助
    Attorn (5), //转让
    Fuuny (6); //趣闻

    // 定义私有变量
    private int nCode ;

    // 构造函数，枚举类型只能为私有
    private InfoType(int _nCode) {
        this.nCode = _nCode;
    }

    @Override
    public String toString() {
        return String.valueOf (  this.nCode);
    }

    public int toValue(){
        return   this.nCode;
    }
}
